<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
subcategories maintenance<br/>
${msg}
<form:form method="post" action="${pageContext.request.contextPath}/maintenance/subcategories/save" commandName="subcategory">
 	
    <table>
    <tr>
    	<td><form:label path="categoriesId">Category:</form:label></td>
        <td>
        	<form:select path="categoriesId">
<c:forEach var="cats" items="${cats}">        		
        		<form:option alt="${cats.description}" label="${cats.name}" value="${cats.categoriesId}"/>
</c:forEach>
        	</form:select>
        </td> 
    </tr>
    <tr>
        <td><form:label path="name">Name:</form:label></td>
        <td><form:input path="name" /></td> 
    </tr>
    <tr>
        <td><form:label path="description">Description:</form:label></td>
        <td><form:input path="description" /></td>
    </tr>
    <tr>
        <td><form:label path="approved">Approved:</form:label></td>
        <td><form:checkbox path="approved"/></td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="Submit"/>
            <form:hidden path="subCategoriesId" />
        </td>
    </tr>
    </table>
    
</form:form>